<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
<!-- 开发环境版本，包含了有帮助的命令行警告 -->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
  <div id="app">
    <h1>{{name}}在{{year}}--{{month}}--{{day+2}}这一天 </h1>
    <h2>{{name}},喜欢什么类型的音乐；{{liketype.name}},s什么年代：{{liketype.age}} </h2>
    <h3 v-text="name">{{name}}喜欢{{liketype.name}}</h3>
    <h3 v-text="year">{{name}}喜欢{{liketype.name}}</h3>
    
  </div>
  {{name}}
  <script>
    const vm=new Vue({
      el:"#app",
      data() {
        return {
          name:"tom is singing",
          year:"2022",
          month:"04",
          day:8,
          liketype:{
            name:"流行",
            age:"18~20"
          }
        }
      },
    })
  </script>
</body>
</html>